package com.wjj.service;

import com.wjj.dao.po.ClassPO;
import com.wjj.dto.ClassDTO;

/**
 * @Description
 * @Author junjun Wang
 * @Date Create in 20:20 2023/12/7
 **/
public class ClassMapper {

	public static ClassDTO fromClassPO(ClassPO classPO) {
		return ClassDTO.builder()
				.classId(classPO.getClassId())
				.className(classPO.getClassName())
				.build();
	}

	public static ClassPO toClassPO(ClassDTO classDTO) {
		return ClassPO.builder()
				.classId(classDTO.getClassId())
				.className(classDTO.getClassName())
				.build();
	}

}
